<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 4-6 反反复复(while循环)</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript">
        var mynum=1;    //mynum初始化数值1
        while(mynum<=5){    //条件判断
            document.write("数字:"+mynum+"<br>");
            mynum=mynum+1;  //条件值更新
        }
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>



<script type="text/javascript">

</script>

</body>
</html>
